package com.meilai.project.service.finance.contractManage;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.meilai.project.vo.finance.contractManage.ContractBillSaleGroupVO;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.time.LocalDate;

public interface FinancialSummaryService {

    Page<ContractBillSaleGroupVO> list(Integer current_page, Integer pageSize, Long customerId, String contractNum, LocalDate contractBeginDateStart, LocalDate contractBeginDateEnd, LocalDate contractEndDateStart, LocalDate contractEndDateEnd);

    void export(HttpServletResponse response, Long customerId, String contractNum, LocalDate contractBeginDateStart, LocalDate contractBeginDateEnd, LocalDate contractEndDateStart, LocalDate contractEndDateEnd) throws IOException, InvalidFormatException;

    boolean receiveContract(Long id);

    boolean fill(Long id, String no);

    boolean remind(Long id, Long group_id);

    boolean updateDate(LocalDate date, Long groupId);
}
